package com.freshmarket.freshmarket.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.freshmarket.freshmarket.entity.LimitedTimeOffer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.freshmarket.freshmarket.entity.ProductType;
import com.freshmarket.freshmarket.entity.form.KillProduct;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Squirrel
 * @since 2020-09-04
 */
public interface ILimitedTimeOfferService extends IService<LimitedTimeOffer> {

    /**
     * 查询所有商品类型
     */
    List<ProductType> findProductType();


    /**
     *
     * @param pageIdx  当前页数
     * @param pageSize 条数
     * @param id
     * @return
     */
    IPage<KillProduct> pageKillProduct(int pageIdx, int pageSize,int id) throws ParseException;

    List<String> Address();

}
